﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileTransferProtocol
{
    public class TPackage
    {
        public CommandType CmdType
        {
            get;
            set;
        }
        /// <summary>
        /// 块ID
        /// </summary>
        public string BlockId
        {
            get;
            set;
        }
        /// <summary>
        /// 已经传输的数量
        /// </summary>
        public long HasTransfer
        {
            get;
            set;
        }
        public bool Complated
        {
            get;
            set;
        }
        /// <summary>
        /// 当次传输的数据
        /// </summary>
        public byte[] Data
        {
            get;
            set;
        }
        public int CurrentSize
        {
            get;
            set;
        }
    }
}
